package com.example.travelservlet.collectionEntertainment.repository;

import com.example.travelservlet.entity.CollectionEntertainment;
import com.example.travelservlet.entity.Entertainment;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author 30697
 */
public interface CollectionEntertainmentRepository extends JpaRepository<CollectionEntertainment,String>, JpaSpecificationExecutor {
    List<CollectionEntertainment> findEntertainmentsByCollectionId(String collectionId);

    void deleteCollectionEntertainmentByCollectionIdAndEntertainmentId(String collectionId,String entertainmentId);
}
